Gravity Model

I created this simulation a long time ago for a math project. The simulation incrementally calculates the acceleration of every body independantly, and displaces them over a small ∆t. The results are alright, but as you can imagine, a combination of my sloppy coding and using JS means that no accurate simlulation could be run in a reasonable amount of time.

These initial inputs are configured for a geosynchronous orbit - where a satellite orbits the Earth in exactly the time it for the Earth to rotate. Go ahead and click Start Simulation!

∆t (s)
Simulation Time (s)
Iderations / Render (0 to calculate instantly - use at own risk)
Gravitational Constant

xpos ypos
xvel yvel
M is affected by gravity?
xpos ypos
xvel yvel
M is affected by gravity?